<?php
define('MYLAB_WEB_PAGE_TO_ROOT', '../../');
require_once MYLAB_WEB_PAGE_TO_ROOT . 'dvwa/includes/MyPage.inc.php';
mylabPageStartup(['authenticated']);

$html = '';          // 由 low.php 填充错误/成功信息
require_once 'source/low.php';   // 先执行验证逻辑

$page = mylabPageNewGrab();
$page['title'] = 'Vulnerability: Brute Force';
$page['body']  = "
<div class='body_padded'>
  <h1>Vulnerability: Brute Force</h1>
  <div class='vulnerable_code_area'>
    <h2>Login</h2>
    <form action='#' method='GET'>
      Username:<br><input type='text' name='username'><br>
      Password:<br><input type='password' name='password'><br><br>
      <input type='submit' value='Login' name='Login'>
    </form>
    {$html}
  </div>
  <p>提示：账号 admin，密码在 000000~999999 之间（6 位纯数字），尽情爆破吧！</p>
</div>";
mylabHtmlEcho($page);